import { Dimensions } from "react-native";
// 获取设备的宽高：
const windowWidth = Dimensions.get("window").width;
const windowHeight = Dimensions.get("window").height;
// 按照百分比获取宽高
const getWidth = (percent: number) => {
  return (Dimensions.get("window").width) * (percent/100)
}
const getHeight = (percent: number) => {
  return (Dimensions.get("window").height) * (percent/100)
}
export {windowWidth, windowHeight,getWidth,getHeight};
